package com.yangsen.oss;

import java.util.Date;

public class ossSimpleObject {
    private String username;
    private String fileName;
    private String key;
    private String size;
    private Date lastModified;

    public ossSimpleObject(String username, String key, String size, Date lastModified) {
        this.username = username;
        this.key = key;
        this.size = size;
        this.lastModified = lastModified;
        fileName = key.substring(username.length());
    }

    public String getFileName() {
        return fileName;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }
}
